<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Position')}:</label>
        <div class="col-xs-12 col-sm-8">

            <select id="c-position" data-rule="required" class="form-control selectpicker" name="row[position]">
                {foreach name="positionList" item="vo"}
                <option value="{$key}" {in name="key" value="0" }selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Type_list')}:</label>
        <div class="col-xs-12 col-sm-8">
                        
            <select id="c-type_list" data-rule="required" class="form-control selectpicker" name="row[type_list]">
                {foreach name="typeListList" item="vo"}
                    <option value="{$key}" {in name="key" value="string" }selected{/in}>{$vo}</option>
                {/foreach}
            </select>

        </div>
    </div>
    <div class="form-group hidden tf tf-number">
        <label class="control-label col-xs-12 col-sm-2">{:__('Decimals')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-decimals" class="form-control" name="row[decimals]" type="number" value="0">
        </div>
    </div>
    <div class="form-group hidden tf tf-checkbox">
        <label class="control-label col-xs-12 col-sm-2">{:__('Minimum')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-minimum" class="form-control" name="row[minimum]" type="text" value="">
        </div>
    </div>
    <div class="form-group hidden tf tf-selects tf-images tf-files tf-checkbox">
        <label class="control-label col-xs-12 col-sm-2">{:__('Maximum')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-maximum" class="form-control" name="row[maximum]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Default')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-default" class="form-control" name="row[default]" type="text" value="">
        </div>
    </div>
    <div class="form-group hidden tf tf-select tf-selects tf-checkbox tf-radio">
        <label class="control-label col-xs-12 col-sm-2">{:__('Values')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-values" class="form-control" name="row[values]">value1|title1
value2|title2</textarea>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Rule')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-rule" class="form-control selectpage" data-source="workorder/fields/rulelist" data-multiple="true" name="row[rule]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Errormsg')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-errormsg" class="form-control" name="row[errormsg]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Notice')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-notice" class="form-control" name="row[notice]" type="text" value="">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Field_length')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-field_length" data-rule="required" class="form-control" name="row[field_length]" type="number" value="255">
        </div>
    </div>
    <div class="form-group pp position-0">
        <label class="control-label col-xs-12 col-sm-2">{:__('Isfilter')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-isfilter" name="row[isfilter]" type="hidden" value="0">
            <a href="javascript:;" data-toggle="switcher" class="btn-switcher" data-input-id="c-isfilter" data-yes="1" data-no="0">
                <i class="fa fa-toggle-on text-success fa-flip-horizontal text-gray fa-2x"></i>
            </a>
            <span class="help-block">{:__('Isfilter Tip')}</span>
        </div>
    </div>
    <div class="form-group pp position-0">
        <label class="control-label col-xs-12 col-sm-2">{:__('Isbasicinfo')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
                {foreach name="isbasicinfoList" item="vo"}
                <label for="row[isbasicinfo]-{$key}"><input id="row[isbasicinfo]-{$key}" name="row[isbasicinfo]" type="radio" value="{$key}" {in name="key" value="1" }checked{/in} /> {$vo}</label>
                {/foreach}
            </div>
            <span class="help-block">{:__('Isbasicinfo Tip')}</span>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Autofill')}:</label>
        <div class="col-xs-12 col-sm-8">

            <div class="radio">
            {foreach name="autofillList" item="vo"}
            <label for="row[autofill]-{$key}"><input id="row[autofill]-{$key}" name="row[autofill]" type="radio" value="{$key}" {in name="key" value="0" }checked{/in} /> {$vo}</label>
            {/foreach}
            </div>
            <span class="help-block">{:__('Autofill Tip')}</span>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Status')}:</label>
        <div class="col-xs-12 col-sm-8">
            
            <div class="radio">
            {foreach name="statusList" item="vo"}
            <label for="row[status]-{$key}"><input id="row[status]-{$key}" name="row[status]" type="radio" value="{$key}" {in name="key" value="1" }checked{/in} /> {$vo}</label>
            {/foreach}
            </div>

        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Extend')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-extend" class="form-control" placeholder='如：id="1" data-test="test"' rows="3" name="row[extend]" type="text" value=""></textarea>
        </div>
    </div>
    
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
